Moved error checking to externalfiles.
Move inserted html out of <section>s.