Updated documentation with code examples