Fixed build settings
Added mogenerator and modernized codebase