Improved Waveform example to demonstrate a typical pattern (including exception handling). Updated some comments.