Started to add tests in test_web.py (gonna rename it soon. Some refactoring in Compendium()