Updating example code for new release v1.2.0
More updating for v1.2.0