Sub and Super Script loops

Worked on adding sub and superscripts to typed chemical equations