There are at least two good reasons for Iran to have a civilian nuclear programme even though they have massive oil reserves: 1) From the moment that a civil servant decides to build a nuclear power station to the moment when it starts generating electricity can take decades. If the doom mongers who keep telling us that the oil is running out are right, any country dependent on oil as a source of energy needs to start looking for an alternative now. There are ministers within the EU who are warning of a European energy crisis in the decades to come, and they are promoting the building of more nuclear power stations. 2) With oil selling at one hundred dollars a barrel, would you want to burn the stuff in your power stations or sell it abroad? I'm not going to pretend that I know whether Iran is building a bomb or not (I'll leave that to other far more astute posters, the ones who also know divine will), but there are good reasons to have a civilian nuclear program.
Australia's most dangerous Islamic State operative killed in U.S. strike (AP)
from the article: U.S.: Iran halted nuclear weapons development in 2003