Some work on exporting simulation results to CSV (#32)