pagination

Closes #1