Fixed 2deriv function; successfully finds 0 covar. freq. Syntax changes.
Bugs fixed.