add docstrings and remove unused sorted list from split_list()