Added cleanDictionary() functionality

Detects existing "dirty" dictionaries.