1. fix typo and add some comment
2. set connect information by the function connect()