Change around waveform class. Add interlocking for multithreading. Added basic OpenGL GUI