Added serial testing code and final pwm test code