changed table keys in Space for easier object removal, added a generic objectRemove method