Bug fixes
Implemented new module loading mechanism, removed _output module
and module duplication functions