Syntax tree now generated, with correct output