refactored Internal.Space
refactored addObject; merged Internal.ObjectRef into Internal.Space