Many bug fixes to get the ice variables to interpolate and write to file correctly