minor tidying of code. Added writedetails command to generate README file with each parameter sweep