Reordered savetracks lines

Reordered the savetracks lines to save memory. Also will only save zp (drifter depths) if it is a 3D run.