finished implementing LuaState, which can now handle return values