Made time an UNLIMITED dimension
added a flag to all netcdf-creating routine that checks if a variable is empty before writing its data