add comments to breadthfirstsearch