Refactored code
Connecting to XMPP server
Added dependencies to the source