Updated documentation and examples