Added PWM module and Michael's software code.