minor fixes and new histogram module