renamed spin function to make consistent with naming conventions
Merge branch 'master' of github.com:shanet/libbiscuit