added switch for eeg use in model
caching s3 results on local drive
minor refactoring for clarity