Keep content in the fields

If content field isn't available insertBefore/After does not function.
Minor tweaks and formatting.
Tidy up documentation.