Fixed minor bug in BFS. Updated comments/notes in java files.