Improved numerical integral for regression

Fixes #19
updated NEWS
Merge pull request #20 from richarddmorey/issue19

Issue19