Gave write_ptw_file ability to write header information