Add documentation to lua_api.txt