added a lot of docstrings
added pin to graph
corrected some variables names