Numerous bug fixes and refactoring to make the project more general.
* Biggest bug: Extra empty row at the top of waveforms has been eliminated. * More options on the command line have been added. * Waveform data generation has been split into a class for easier re-use.