overhaul the handling of result log and its inputs and outputs
first commit of results log csv file
minor tweaks, I think