Better luainterpreter, some other fixes