Updated examples to use the new classes and API calls. Mostly compiling, still some work to do.