removed more redundant preprocessing code
tidying
convenience function for removing covariates