more spike analysis and trial selection improvements