Removed unncessary parameters and more comments in getBoxHist()