Added docstrings

Added more docstrings to public functions