added a single global object and improved routing. Added custom user require to be included in the global object. Added more documentation