search-engine: added diagrams
search-engine: refactored diagrams
search-engine: refactored diagrams more
search-engine: add xmlpi on diagrams
search-engine: refactored and docstringed diagrams