Rework on examples and update documentation.