missing polyroot function, parameter pasing changed, and some other things