added example usage doc

added example usage in the api doc