updating cmake
a handful of small bug fixes
support more cases in PPtrajectory append