xmpp logging working, examples fixed up, improved docs