Revert "PWM method efficiency improvements and MoonPhase whitespace cleanup"

This reverts commit 89159272e7b0b3629ce7d41efc4523113aa1f394.