added use_weighted_fit and use_monte_carlo option to flux. If use_weighted_fit only SD predict error type is allowed #275