fixed a bug in torque range assumption
added PWM+Polarity functionality