More doc, examples and tests.