changed print format for path to 'lat lon'
Added the total_distance function