Add .gitignore, fix connect() syntax error. Basic connectivity now works.