Add pattern docstrings and sphinx page