need to debug dirichlet (treat like replicates). added notes in code.