Latest updates from master branch. Added more examples.