fix formmating issues in dictionary and add code to read dictionary file