added pwm generator
update code