adding some handling for abstract types of "alternate
minor cleanups
changing the technique by which the title is made, robustly handles html escaped characters