additions to waveform analysis, added Tag argument

Tag argument (-T) is used to mark the data being analysed, if needed in
the waveform analysis.
Updates to waveform analysis:
-R now opens a results file where the amplitude histogram is saved
(mpvfit as well).