Bug fix
*correct bug on calc_rate (first rate step wasn't considered)
*add admission control on min_rate