saveTransform function

Save and load transform objects