Fixed bug on calc. of time difference between speed measurements

Also there is an issue with spikes in cadence data...