Adds getWords() and updates documentation.