Added some function docs and better spin example