Fix small diff-problem
Add docstrings to spi.py