Gravar-mail: Structure of a type IV pilus machinery in the open and closed state