added encoding, stopwords, gzip option