Update Connection related classes

Update the comments;
Remove some unneccessary codes;
Remove some unneccessary methods.