Updated script to generate output files in the same directory.
Added CSV files.