A simple code for decoding RIFF header from wave file