Set headers on write

Allow the ability to set headers on files as you write them.
same goed for this, (pref comment)