Add WaveformView and little refactor in main activity.