add rewrite of edit distance
refactoring
remove debug messages
add new files