add accel function, min and max speed limits, and posible limit on both directions