More pandoc tweaks
More tweaks - and add the images
More conversions to pandoc
Fix the footnotes