added config and CSV file processing