Cleaned up datacard trees code (and added proper implementation of stocastic term smearing).