Writes to excel file