Added DFS functions, modified makefile