Better handling of 'Done' state of trajectories
Renamed Trajectory.At_End in Trajectory.Is_Done
Using OO syntax for trajectories