A lot of fixes and improvements to the word similarity library