Fixed distance formula and updated readme