Added example for creating custom modules and invoking them.
Improved custom module definition to automatically make functions defined in a 'publicMethods' object available upon .require