Fixed up learning code, so we can now do no learning without error. (Now we just need to do learning.)