Completed adding pagination

- Added the pagination class
- Most of the methods include math needed to check for previous page,
next page and to create an offset.
- Added code to index to display the pagination code.
- Need to study this functionality.