Added tempfile stuff for plotting task;add plotting to checkMaskedVar if diffs are there