Add documentation and unit tests for HistoryRow and Output.