some timing refinement in control law, pwm timing still not quite right