Added distribution for generated graph. Also setted precisoin of output.