Fixing some comments on ConnectionFactory and adding Documentation of ConnectionFactory.java