added comments and graph changes