pagination helper updated to include prev/next buttons on both pager and pagination display types. With the addition of base directory, totalpages and currentpage added to the constructor