update example file, add some methods to Trajectory, update readme