resorted some distance code, deleted log.txt

Deleted log.txt so we can have a fresh log.txt file.