Fixed the CSV default output name.
Write the header information to the CSV also.