adding a generator of graphs and fixed problems with style of programming