Updated connect() to match the readme and common usage.
Added block syntax for connect().