doctest/modeling

Fixes doctests in  package.  @nden