completed graph section, fixed bugs