Code clean up and further separation from the LuaState class
Documentation updates