Diagnostics and typo

Print distanceInKm, correct a typo