Changed the prior Dirichlet parameters of pi to 1 instead of 1/P.

I think it works better this way.