adds bfs implementation section and more small changes.