Closed luaState
Removed need for <iostream>
Deleted unused code