Output and Expansion Counter Changes

altered placement of expansioncounter in BFS to be accurate.
edited input and output formats to match examples given