Added new functions

Changed examples for the update