Scenario Aggregated Loss

Port the aggregate loss back from the legacy branch. Output it to CSV format as requested by users