added functionality to do some basic plotting of waveforms