Added comments and re-fixed the handling of pixel dimensions to correspond to the permutation contortions for the class data.