documentation and invite function