Implement subclass hooks and fix some bugs.
Add hook for pages no longer being displayed.
Document the shit out of stuff and remove unecessary code.