Clean-up connector.php

Cleaned up code slighty and extra whitespace, no more mixture between tabs/spaces