Add init code
Improve examples