Important change: now final interval taken for restraints is not anymore of size angleInterval, but simply goes from min to max.