fixed bug: maxspeed is 0 by default, added some methods