csv importation functions and main