add code to write geometry data file header to disk