Correctly write headers
Updated "documentation"