fixed clamping of pos vel accel in last bezier segment
force start and end accelerations to zero