added protection log(0)
added auto binning and rug plot