added ability to configure posts per page. this closes #70.