added a check and feedback in case of reading an inexistent file