Migrated lexicon from JSON  to modular classes.