fixed bug with negative speed not displayed correctly
code cleanup