Some faulty printing of loops fixed.
some experimentation with multi-dim arrays. Added the construct ForDim.
trying out arrays of different dimensions.
Passing an array2 to ForDim.