How does Iran's theocratic system of power work?

Wait 5 sec.

Who could succeed Khamenei as supreme leader, and what role could the Revolutionary Guards play?