formatting results file to exact spec