Added length input to spikes

Careless bug in previous version that was outputting a logical vector
the length of the number of spikes, rather than the time in ms. This
will need further tweaking, as large files will exceed the memory
capacity of most computers. Possibly changing to sparse.