fixed bug in reference surface domain: create PlaneSurface instead of NurbsSurface. Also, switched from position3d to refPosition so that when an environment is disconnected, the agent picks up from the 3d point. Still have bugs in switching environments