Refactored Lexicon to Dictionary. Add documentation