added example. Minor bugfix.