Finished implementation of output file and ifxed return statements in br...

...anching