Generalization for different labels
Check whether the possibility to have more material types (i.e., MAT_CHAR is a structure with multiple layers) is supported by the code. Is it sufficient to call in INPUT many times the initialization of MAT_CHAR? Check also if a multi-layered MAT_CHAR structure is supported in the other functions, such as in params.m