Fixed typos in documentation
Updated example