Added PWM input and output modules
Minor Fixes