Resize now much more efficient

Resizing no longer requires the whole process to rerun. Also a footer
was added to the html page, but it isn't finished.