Added already connected exception. Added comments.