Updated demo text style
Add tokenizeSingle method
Add single-rule test cases
Add state.level everywhere