Fixed up implem. of output file
Merge pull request #37 from tassiahmed/working

Fixed up implem. of output file