Sorry, but pearlite is not carbon, but a compound of ferrite/iron and carbon/cementite. Martensite is not hardened carbon. It is the resulting product of a mix of iron and carbon that has been hardened by heat treating. There are no molecular changes in steel because steel is a crystalline structure and has NO molecules. Groups of atoms make crystals, groups of crystals make grains, groups of grains make steel, or iron. When heating steel, the pearlite structure begins forming austenite, which when completed is an homogenous solution of iron and carbon. This transformation begins at around 1333°f/1340°f. Ac 1. Ac 2 is when the steel becomes non-magnetic at exactly 1414°. Ac3 is when with increased heat above the non-magnetic state, the austenite has reached a completely homogenized solution, at which point the steel is rapidly cooled forming martensite, the hardened form of steel, then for most uses it is tempered. This is all a matter of a shifting of the carbon and iron atoms making up the atomic lattice structure, by the effects of heat. When you quench you are locking the atoms in position. Not molecules. When you temper you allow carbon atoms that are under heavy stress to basically relax a bit by a slight shift back towards where they started from before the heat treating began.