initial commit of connector class. need to split main() off into a test class