Improved DTW computation with estimated units and better output format.