adding WaveFile class to read and write wav files