Update module to use absolute paths in __main_, This makes it so that there aren't multiple instances of modules.
Fixes the issue where state would be set in main, but unchanged in other modules.
Update documentation for new module style.