Added normalization option to write_wav()