Merge pull request #36 from tassiahmed/working

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