imports cleaned up
counting elapsed time added
bug fix: farthest distance updated