Added spaces to commas wherever necessary.
Moved images.

Moved images to the start of the section so that they appear inline with the section.
Used figref command instead ref for figures

Ensure a standard representation of the reference