Feature/issue 247

Fixes #247.

- [x] added error checking for `dirichlet_log`
- [x] added unit tests for the bounds