final pwm code + mux testing added