added history agent, obtain history initially, added comments