Bug fixes to Workspace accel constraint and new way of dealing with perturbations in first and last ramps