Added connect method which accepts a URI see #164.