added function to remove stopwords, other chanages