refactoring: elem in grammar
leaf fix
print fix
output option
Merge pull request #4 from MarwanG/leaf

Leaf