some comments and cleanup for PwmCapture