changed extractTDMS function
added some processing functions
changed createProtocol to add 1/2 second also before the stimulus