improved directionality control; removed some debug css; added css support for footnotes etc.