Cleaned up provisioning example and updated library for API change