fix jsdoc comment.
refactor function parameters.
Merge pull request #2 from shoito/apidoc

fix jsdoc comment