Added compilation and Lua code generation