Added date, header, footer to text output