Improved basic pagination handling.
Added debugging.
Added debugging styles.