code cleanup

— removed some unnecessary tags (extra </div>, etc)

— added in comments to clarify and ensure each tag is closed