Added a connect method, added tests. Fixes issue #3.
Resolved failing build issue.