Commands get_rew and set_rew are now obsolete. They are replaced by the new pair set_cr() and get_cr():
var = get_cr(reward_name);where get_cr returns as a float the cumulative reward corresponding to reward_name.
var = set_cr(reward_name, value);where the cumulative reward value of the reward reward_name will be set to value.