Added ConnectionManager and code documentation

Tested on local machine. Need someone else to test the connection manager then we should be able to resolve #35