now tracks velocity
added coasting option