add some comments about pwm generation