Changed function signatures for BFS and DFS, now return bools. Also added more inline code doc.