Improvements to pairing agent in demo code.  Bug fixes in audio codec.