Refactoring of the AgnCompareReportText class; Filling in documentation