Removed unusd page segment classes. Various other improvements.