New functions to pickle and interpolate, updated function to mark missing data.