Updated CTX_ReadAll with error handling

The function now shows an error if the length of the header is different
from 26
Added the hasSpikes Variable
Changed the selection of automatic events

In some of the old programs automatic values have a value of 1 instead
of 0. So I increased the range to catch them all