documented and tweaked dhtml files