general tidy up and commenting
first igraph