Change default edit distance to one.
Remove obsolete code.