fixed errors in latent variable check. Updated commorbidity list.