Changed variable names and added a synset_to_word function.