fixed 'defined_name' variable, added more docstring
more graph label padding