Added levenshtein distance stuff
Also did some fixes.  More fixes coming.
Fixes for the spacebar issue.