included netcdf creation codes, and cleaned up output points