Auto update graph

Need to include my other pull request before
This one refers to  issue #7