redo of stopwords function and documentation