added another pwm input, the others still need some work!