cocopro: finished latent variable inference script;