fixed a bug with duplicate words in the dictionary. Also re formated a few things.