Rewrote DerivationTool from scratch
Derivation Tool now has all code