added hist fucntion
Merge pull request #4 from FredoDallaire/master

added hist function