Updated documenation with examples.