tidied up cleanRows() and related methods in LiveWave.pde