Update example code with newest API methods and extra documentation