properly calculates distances for #index, as well as removing NaN distances from display for #show
Merge pull request #22 from seanpdoyle/fix-index-distances

properly calculates distances for #index