Made first successful attempt to adding AST tree generation code
Merged Maciej's work