updated distances and adding distance calculation script