wrote refStat, redid the reference parsers, the error parser, and the text parser