Added velocity and acceleration information support. Fixed up some minor bugs.