Made changes so wordID will only increment for unique words