clean up print outs; creats csv