Script now generates more structured html files.