Made a gigantic number of changes to make a real working page.