Adjust some structures.
Add pagetool class