adding riffa reference
correcting riffa reference
adding flow diagram of the stateMachine