added comments to sentence2ngrams()