Corrected Connecting Error! 

Corrected Connecting Error! 
Made adjustments to follow PSR conventions!