added code to build a list of resource id inventory changes for an agent for all timesteps