Updated documentation and added variables for PWM in main.