DOC: Fix math-docstrings and create developer API