Enable unbuffered printing for progress monitors
Fix wrong sign in gradients with L1 and L2 regularization