added chan2idx function, stim info to Data