refactoring wikicompare.module 7/24
refactoring generate_demo 8/24