Upgrade of waveform analysis

Online amplitude monitor, online fitting.