Moved write trec text to trecTextClass