added comments to insertSentence