cleaned up some code, got the distances to show up as an integer, rather than a string