added support for ingesting wikipedia pages, refactored ingest code