Correctly (now) scales waveform data.

Also allows scaling of waveform y. Improved syncing added.
Minor error handling bug fix.