Added logging to Q-learning and LO Q-learning.