Extended section on the creation of the graphs.