minor changes to ECG sync and a function to read HB from MEG file