Add tests, code and docs for pyramid inclusion

Still needs some integration tests for it