Changed the example code and core api functions to correspond with the correct parameters and methods
Changed the example code and core api functions to correspond with the correct parameters and methods