changed the way that physics links serialize. Added shapefactory class.