added unittest, fixed stopword processing