Added state machine recycling.

Added a Reset method to State and Region to allow for state machine
recycling; closes #5.
Updated example to align with diagrams used on the site.