- changed the id generating system to not rely on the html id of the anchored element that is highlighted
- placed some debugging statements to resolve other issues