The science
Each site is either occupied or vacant with vacancy cost E_v. In equilibrium p = 1/(1 + e^(E_v/kT)), approximately e^(-E_v/kT) (Arrhenius). The Monte Carlo uses Metropolis moves: creating a vacancy is accepted with probability e^(-E_v/kT), filling one always.
Assembly: with error rate e per atom, a structure of N atoms is perfect with probability (1-e)^N, about e^(-Ne). Each proofreading pass fixes a fraction q of errors, so e_eff = e (1-q)^k. A 1e11-atom structure needs e_eff well below 1e-11 to be reliably perfect.
Simplifications: non-interacting sites, no vacancy-formation entropy or relaxation, no clustering; real vacancy energies are about 1 eV (here set low so vacancies are visible at modest temperature).