fixed a bug in slew rate, tweaked some params