updated home version of weighted_ic_exp to match lab
import log