fixed a few bugs
change fuzzy search to favor shorter paths in tie