Improved documentation with examples