Added examples and documentation.