LOGISTIC REGRESSION: Improve error messages and coding style.