various updates

Implemented some bug fixes suggested by Ben Bolker.  Implemented more
efficient likelihood calculations into functions other than functions
used to maximize likelihood.