added correlation capability for multiple reference waves | added empty wave structure check
refactored common elements of both reference methods | fixed issue with multi-reference methods
use new interpolating function for Matlab 2013+ | check for empty waves
check for empty structure
minor fixes
check for proper reference method
changed default peak to peak to empty and placed hard value 140uV to the mdc criteria defaults