Make functions names more consistent
First draft of connected components, I know it's not right but will work on it.