Implemented error msg for failing in reading metadata; succeed in reading metadata text file