function [evt_times evt_text] = get_events(fid_prefix)

load([fid_prefix '\' fid_prefix '_events.mat']);

evt_times = zeros(size(events.timestamps));
evt_text = events.comments;

if size(evt_times) ~= size(evt_text)
    error('Timestamps and comments have unequal lengths.')
end

for i = 1:length(events.timestamps)
    evt_times(i) = etime([str2double(events.timestamps{i}(1:4)) str2double(events.timestamps{i}(6:7)) ...
        str2double(events.timestamps{i}(9:10)) str2double(events.timestamps{i}(12:13)) ...
        str2double(events.timestamps{i}(15:16)) str2double(events.timestamps{i}(18:19))],...
        [str2double(events.starttime(1:4)) str2double(events.starttime(6:7)) ...
        str2double(events.starttime(9:10)) str2double(events.starttime(12:13)) ...
        str2double(events.starttime(15:16)) str2double(events.starttime(18:19))]);
end