added full PWM cleansing so as to provide Marina-compatible PWMs