added functionality to allow for explicit .csv files in the function stackCSV