Finished adding ability to write layers to wav files