Added header output to stdout and to file- work_in_progress