Added data() Lua function for transferring data arrays. Also added enterCritical() and leaveCritical() Lua functions.