revert output argument order change in solveTraj
take geval back out of direct traj opt methods