added placeholders for decay types. also, added helper function for writing histograms to files