Added a lot of additional profiling instrumentation.  A process for removal in a release mode should be established. For higher volume calls, the instrumentation overhead is mesasureable.  Further understanding how to properly use the document frament concept for better insertion performance should be evaluated.  Further, understanding how to improve html parsing performance will in back a lot of time.