fix bug in sentenceOccurences
it's working!
quick cleanup