Clean up code
move around
add new edit distance