#119: add comment to 'getWave' function