Pagination class
Added .php extension to file links