Safer logging with vsnprintf().
Added comment.
General fixes and C++ification of the Audio object.
General fixes and code polishing.