replaced power_poti_max with power_max at some places where it was actually misplaced and caused problems(in torque mode power_poti_max is a percentage, not a power!)