pwm.py: minor refactoring of freq-gen
pwm: doc + defaults