* more optimizations, and a fix for the addElement() method for the page class