added functions to capture covariate meta-data and treatment data