added categorical parm scalar
updated diagnostic plot function