Added documentation for connect