Added a reset operation on the graph
Applied patch from Thomas

Removes unnecessary println output
Merge remote-tracking branch 'upstream/master'