Added fragment function handles, ensured named anchors are respected
after all fragments are loaded and doc updates.