updating documentation, adding example