Rewrote the waveform engine in Java (performance, enhancements) & cleaned structure a bit.