finished primary word and sentence clustering