spreadsheet: allow adding new categories and metrics; small fixes