Updated library to include rudimentary speed control.

Signed-off-by: Pavlo Manovi <pavlo.manovi@gmail.com>