add support for negative indizes for the select functionality

docstrings updated and test cases added.