update documentation example and params, and fix typo