Remove unused variable headerWritten_
Add additional spaces