initial commit of WAV encoder