Prepared for version 4.0.
Updated examples.
Merge branch 'develop'