Added format checking for docstrings.