Remove unused grammar rules
Replace Document AST with Element
Fix import in utils
Work on linked-list style elements
Remove print_document in favour of print_element
Revert to using lists for grammar