Continued working on Lua

Added basic entity functions