Removed debug code and corrected write_netcdf in data_grid.h.
Found many instances of debug code that were commented out, but not in ifdef statements. Should take a long pass over code to make sure there are no other instances of these commented out debug code.
write_netcdf function of data_grid was not functioning properly. NcDim was not working as intended for n-dimensional cases and NcVar varname needed to not have a temporary when being passed in.