Tested the AST builder and fixed some pointer issues