chore(pagination): add documentation to pagination class and refactor way to set options