Fixed bugs and updated QLearning code to run with the latest changes in Caffe