modified QIEsavehits so that is has a similar data format as the output file