fixing traj_running flag, adding more documentation
adding example