Add file information to header of file