code to export spike waveforms for Greg. added segment annotation to spike trains and analog signals.