Created structure for data.mining module and pulled over original hacked-up wavelet spectra code from Dietze et al. 2011 JGR-B
Moved basic spectra code to a new file, ModelResidualSpectra.R, and cleaned up. Had to update code for changes in dplR library. Encapsulated innermost code in site x model loop into a function, ResidSpectra(data,model) that returns the spectum itself.
Moved ResidSpectra function to it's own file
Started cleaning up null spectra code