Added check to WavFileReaderWriter for correct file extension (.wav).