documentation updated and small change to the example