add docstrings for core library