Fixed graphDFSPE for atend feedback. Also refactored the code and commented unused parts.