invitations logic collected in a single module, documentation added.