Code for import and analysis of ephys data