Resolved import errors.
Reworked State class to include a universal identifier (uid) and a StateMachine identifier (sid).