Added tests and handling for exceptions when reading in files to convert.