batch_learner: Shortened code lines and wrapped more comments.