added recording trajectory
removed a swap file, and built / but not tested recording traj