Fixed code for plotting and exporting Dose surface histograms.