Add function to unify naming of csv files

this also changes the argument of the main function