some fixes and enhancements to generating html (unknown fits, script, more colors)