Enhance and expand

Break into functions, add alerts for paragraphs without citations,
highlight non-free images in red, and other optimizations