Updates file header