Upstream

Hi,

I use your PWM-classes for a project. I made some changes and thought maybe you want to look at them. Mainly I added support for the duty_percent and period_freq files and made some cosmetic changes. 
I don't exactly know how pull requests work, but I wanted to try that feature for some time anyway.

Best regards,

   Jan