revised commenting
fixed Levenshtein function bug