Added functionality to take different avgPulses and output PDFs
Not sure if this works. Added functionality for user input