updated loop execution time; optimized delays between pulses; almost done with protocol