Implemented modules compile method + tests.