Remove module scoping for pwm_pin class and add simple class to lib.