edit distance test working
code cleaning