Fixed ifndef issue
Now can find max peak and fit that, as well as dictate the name and title of the tree to write to. Useful for finding the calibration pulse peak.