Fix the csv load function and add a function to delete rows