added id recognition
added user recognition in GraphCtrl function
added comments in code