add docs and example to pagination
Merge pull request #8 from shonenada/add-docs-to-pagination

add docs and example to pagination