Added code to print header lines and lines of data.