Worked on PWM

Still need to do tb