Added docstrings to all functions, added reject_outliers for CostForBinnedFeature, rebuilt several functions to reflect structural changes and efficiency