Added description about methods and events. Provided two examples.