minor bug fix
minor bug fixes and improvements to spreadsheet exports