Fixed namespace statement when creating class with relative input.
Split code base into multiple files.
Replaced hard-coded "/" by os.sep
More refactoring.