[TASK] clean up the code
- Fix the typo in file name and license for documentation
- Add default state to fsm