Fixed bug with doubly linked list.
Removed unused subject->emph_nestlevel.