Add support for PWMs, closes #3