add functions that supports the noise modeling. Now toa index groups
basing on different flags are stored in toafile.othergroups.