Updated qlearning readability

added comments and fixed variable names