Implemented archive metadata checking and repair