Added default values to fields.
Added function to calculate Levenshtein ratio.