Fix up history output, make it an email attachment, save to SD card too; avoid spurio...