Added docstrings, compared runtimes