adding header to generated output. Closes #24