improved word_cor to handle more than one word and to output a matrix if desired