Tidying up
Corrected but to properly output data files