removed class.pages.php; a bunch of little fixes