make a spreadsheet for the results of processing
change functions to put out structures, prepare functions to log result quantities of interest