Modified getWords()
modified getWords(), now works