Used the new print functions in model.cxx
Added a printWarning function