Fix typos, wording, and tweak distance formula