change the output file format

output format change to every 8 element at a line.