Further refactoring of the audio library. Bug fixing in the interface library.