Lua documentation and function update