Added an option to use CSV file as training library