bounds to coeffs slightly corrected. added coeffs check and y output