Hist Lib Updates

Still not sure if seg fault issue is resolved