WIP implement modules
WIP Implement modules

"Only" scope checking is missing now.
WIP Attempts at scope-checking
WIP Keep scope checking, cleaner now.