Little refatoring and docstrings in golang client