rid the XTF->HTML process of DOCTYPE and fix up note display a bit