added option to normalize to histogram area in main plotting script
updated for single photon data analysis