added comments and changed semantics of the list profiles service