Threshold of Spike Cataloger functions with rolling average

Functionality is improved because of this.  Also changed the
time_intervals function to be able to work with differently sized data
sets.