Updated the examples and the documentation.