Hi David,
Yes, you need to remove the line you mentioned, as you are not importing epochs from new raw data but rather existing raw data.
'datafile', {RawFiles{1}, RawFiles{1}}, ...
The rest looks fine at quick glance. If it is not working, can you please post the full error message?
Best,
Martin