Adding examples and extending the documentation.