Documentation extended with examples.