Writes headers

Writes headers to the output file