General cleanup
General cleanup

- Added comments
- Reduced code width to <= 80 characters
- Moved initialization code into initializePage() function
- Moved functions into a more sensible order

grantmor/PaginationAndContentFilter,grantmor/PaginationAndContentFilter