* Split audio output into several separate files to make it easier to debug. Removed a few redundancies as well.