Added connect and disconnect
Merge pull request #7 from shardul-seth/master

Added connect and disconnect