More Changes to wave file creation
Updated write_stream to accept file name
Waves are now properly constructed!