made smaller fns with unit tests; implemented in functions/EOF.R. Also altered scripts so only 5 PCs are saved in NetCDF
working on better sequence for creating and writing EOF, PC, corr, varexp. issues with corr; gives allocation size error
subbing in writeToFile and getFromFile, but there is an issue with start/count definition; doesn't seem to pick it up. corr is too large, need to find a way to deal with that