Added an example usage to the ```add``` method

Nothing too fancy, further information is provided in the undoManager
documentation.