Reverted PWM downcounting fix, now it's not stable because of delayed PWM polarity switch - fix to come
Fixed PWM polarity switch, no hacks required