Completed LUA support, read/write lua script