Added some Lua runtime init and call main() from main.lua