Updated docstrings to numpy formatting.