DOC: added documentation for extension setup and teardown