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