tidied, started adding settings to SPREADSHEET