finished the set of functions to automaticly load and process data from the csv file