Fixed GenFSM example code and typos.
Updated GenFSM example code
Merge pull request #1477 from jwarwick/genfsm_docs

Updated GenFSM