Added printCoeffs as requested. Note that the coeffs will now be printed twice by