In accordance with embodiments of the invention, local metadata is embedded into, and extracted from, an embedded interaction code document. The controls of the apparatus are fully automated using a programmable logic controller in conjunction with a touchscreen display that provides real-time data, process control parameters, and a choice of batter recipes. The first measured diffraction signal is compared to a first simulated diffraction signal generated using a profile model of the first structure.