added polyvalfit function
removed unused imports
fixes #3