merging from repo
Using newer version to support multinomial distributions