Added parameter to only use words greater than specified length to getWords() method