Add SMA and tests. Update gitignore.
Merge pull request #13 from 6ahodir/master

added SMA