fixed call to Curry

needed to use functional::Curry to avoid explicitly putting a require()
at the top of the file. now it works with devtools.
removed dependency on dhstools

copied the get.weights() and get.var() functions over from
dhstools package to this one