now works for objects of class "nls"
Merge branch 'master' of https://github.com/w108bmg/invest