Fixed off-by-one in results writing to spreadsheet. Moved stuff around.