Included information about defining states as a function + typo fixes

This detail burned me badly a few days ago. I think it deserves a little mention in the documentation. End-users shouldn't be expected to dig through the issues section for this.

I love this library, btw. Using it **heavily** in production at YouNow.