minor bug fixes after merge

mostly involving isStopWord