Added basic looping over csv
Basic error handling in main function instead of ReadCSV