How can I connect loose edges?
You need to use Remove Doubles.
 In Edit Mode, press  A  once or twice to select all vertices, then Ctrl +  V  and choose Remove Doubles, this will weld all vertices sharing same location.