PWM frequency library

#1. Use code tags. It makes it easier to read code.
4V? Seems like your voltage is not being amplified or something.