adjusted diff template slightly and integrated with graph (needs tuning though) fixes #311