Fixes a problem which occours if file does not exist

Updated to output a message if a requested file does not exist