progress made on WordNet class

fixed bugs and made optimizations