cleaned up code in panel.symhist a bit, moving trivial external function code back inside