This is the Cleverstack example module!
There are a couple of things to do to make a module:
This is saved in the root of your module folder where you'll instantiate and configure your angular module.
This is a require.js main.js file used to list the javascript files used by your module; it's stored in the root of your module folder with the module.js file.
In the modules/main.js file add your module's foldername to the packages array to allow other modules to use it.
Before your new module can be used you'll need to add it to your application module's main.js and module.js.
Aside from the main.js and module.js files, you can organise your module's files any way you like as long as you keep your module.js and main.js files up-to-date with their location and of course.