adding design matrix class, metadata and restriction, to be reviewed before closing issue, reasoning ok