Use REPL style and fix some errors in the code examples
Format math formulas
Use imperative in docstrings
Fix doublecolon usage in docstrings
Use REPL syntax in docstrings
Fix test dependencies in Tox configuration
Test code examples with doctest