fix type error
added histogram functions
kdes