Reorganize and update api examples
updated examples
Merge pull request #2517 from eileenmcnaughton/examples

Examples