add extension setup function
document setup function
Merge pull request #435 from jenius/v3#extension-setup

"Setup" function for extensions