Added docstrings where applicable