coeffs function

Extract and manipulate coefficients