minor mods to mcmf and simplified edit distance