Finally got the parameter estimators right, and checked against "known goods". Misc small fixes to the docs and example programs.