Completed implementation of the ordered cyclic pwm

Requires much testing