Finished fixing the PWM 16-bit counter overflow bug.  It should now be possible to set a period frequency, clock values, etc. to almost any value and the initialization will then cap the values to the nearest possible legal value.