added reformating to final data frames before file output

Signed-off-by: DavidCJones <dcjoneshome@hotmail.com>