Minor api updates to 2 examples