Stride length estimation and bug fixes