Refactored Connector and updated documentation.