updated to use autoloader, use classes so that more than one output can be displayed per page.