did some cleanup and fixed how the outputs write to file so that when read into igor x,y,z axes are correct