refactoring in GravisGraphEventListner, classes CommandFactory added