Refactoring in PWM. Removed PWM functions :) Added utils macros