Some restructurring, as requested by the new reading, moving parts around, adding the array dealloc part
Evaluation finished, rework after second reading finished