added code to write csv files to a separate folder for input when debugging using a fortran compiler (build with input.for as the main program)