cleanup doc on shared functions and spaceobject