Updated documentation with examples.