added print indices so plotted waveforms can be identified