when a function is decribed in hist.h, do not describe it again in hist.c to avoid future doc synchronization issues.
renamed functions with HIST_* prefix