Minor fixes to example
Added header for output file