Added timenthone function to get the time for the n'th 1 in a waveform
add names to waveforms based on the csv file names