Added PWM_REV_MAX constant to separate max reverse and forward speeds.
Improved max power checks and power calculations.