Added docstrings to each function complete with :param definitions.