added saving actions. now computing just last action entropy gain. small changes