Finished with the tex file. Added program to plot the difference between measured and sampled histograms.