Added waveform

Added a waveform generator.