Added numArticlesPerPage option

Minor changes to pagination
Rebuilt basic example