- fixed the problem where anchored element tags were not wrapping around the hilighted text
- impelenteing methods to process subordinates for preview and for db
- preview function not quite working yet