bugfix in updating project that was giving new trajectories the wrong index to save to. Also some other minor changes