Fixes to CWT in peak finder and SNR calculation