Reworked the compiler code generation. Map plugin is still missing
though