First Submission. Working DFS with no memleak, also fixed mfile