fixed example of extract_waveunit