Initial version of update_predictor(), cleaned up comment headers