Now uses the pretty printer to print the abstract syntax tree to output.txt for testing