Created CSV reading function, and added exception handling with parsing CSV.