Implemented pagination. Close #7.

Thanks!