Changed Page methods to getSantizedTitle/Contents. Added a flatten method.