changed wave header writer to writestring (shortens code. Fixed bug with setting sample_width from inbound compression code.