Merge pull request #7 from Iszak/master

General clean up
fixed SSM reference and sorted out pre's
Added method to remove all states
added method allow you to expose the current state