All data fields and attributes now correctly written to gdf file need to test writing remaining data fields