Cleanup and comments to CHAIN_ENDS agent dist