Added comments to DFS and IDS

Comments for everyone