fix some issues, working examples and grammars