President Mahmoud Ahmadinejad of Iran , on a visit to this impoverished but strategic former Soviet republic , signed a number of agreements with President Emomali Rahmonov intended to increase cooperation on trade and tourism and on cultural programs .