Added clear_node function to remove a node and its edges entirely.
Introducing more helper functions.
Cleanup of 'joinSimilar' code.
Minor comments and commented out my own del_edge.