check if mCurrentLocation is defined
simplify code
Don't calculate speed if distance between current and previous location is smaller than the current accuracy, close #103