Revised connection method

Flags are all set individually in their own setters now instead of in
the connect() method call.