Update examples for breaking changes to the library

Fixed examples to correct for breaking changes to library