Add initial ConnectedComponents code
Minor edits
Fix minor lingering compile errors