Updated docstrings to permute function.