Renamed variables to reflect use in WordNet and thesis
Moved unique sub to bottom, as it is a less importan and copied function