More fixes to grids

@sean-duffy, I added a couple of fixes including writing out a header
row in the xlsx files.