changed to more open design.

re-initialised autoloader and page.class