Fixed unclosed streams and sound garble. Added rough PCM saving