Major change -- Fresh code for building the header in Text.py.  Minor changes elsewhere.