updated the histogram APi, and added a function to parse minutes into seconds