Pass back portal instance in init callback
Refactor examples to use init
gendocs
Bump version to 0.3.1