Added Sphinx documentation and revised score calculation