Update sm.py

Small improvements to documentation