WAV header working using single fread and classes