Removing a call to lua_remove in RectfLib
some formatting and comment tweaks
re-ordering a statement in StateLib