Add forgotten fileformat id.
Correct parts of writing.