Add docstrings/comments
Improve addClient method