Added docstrings
Added docstring and self.role