Update functions.inc

added features to add a ROLE field which will be indicated by a small icon next to the name.
role "other" currently doesn't have an icon, but it can be changed easily.