Fixed some bugs related to NUM_LETTER_GROUPS
Implemented --dictionary functionality