basic working version, no gui
working waveform generation with new waveform