Simplified route algorithm, tested and working well
backup
Sorting out deleted files issue
Fixing things up