Added exceptions module
Improved connection class