initial version, RIFF header parser + WAV duration function