added an example and added changes to doc