Update and rename agent.h to compound.h