complete fsm and add sample
merge dev and modify ver to 0.0.2