new waveform, waveform option widgets, added example code that needs to be integrated