Add more test case for hierarchical state machine
Support export hierarchical state machine definition
Update documents