added the functions to write out cluster level results to spreadsheets