Added validation to Connetor.php
Added coments and validation to Connector.php