added a make_bfs binary and bug fixes