added fixes to Trajectory.py as well as project/builder to fix issues with redundant frames.