Update under-the-hood.rst

rewriting as a rationale document for the rewrite