Removed uneeded lua_pop in RegisterLuaFuncs. changed LuaLoadCheck from if != 1 to != LUA_OK.