changed max speed calculation
Merge branch 'master' into gh-pages