implemented geolocation distance function + test and organized/commented
code