Iran, IAEA agree to resolve outstanding nuke issues