Add comments and log
Merge pull request #3 from goxmpp/master-AddComments

Add comments and log