Added New State

Removed Extension state and added File state. Removed state iterator.
Fixed up support for character FSMs.