Fixing some debug info, and updating TDAgentMemory to save the number of the current generation