Updated doc and examples.