Lightning Framework Fake Pull Request

I made this PR to myself so that Ioan/Mark can add comments inline if desired.
Done, though i might move the ``table`` variable into a class member variable to reduce memory reloading, in which case it would no longer be const.