Added ability to use require path setup in namespace modules + refactoring