Renamed read_archive to read_directory and changed error reporting.