changes to historyfragment and wedgesummary and various other tweaks