Reading reference signals now reads the primary and secondary reference signal from file.
Incremental changes
Incremental changes
Added preprocessing routines
Demeaning is done first in pre-processing as it should have been done.
Included pre-processing in the main file.