Added edges and changed generate_AST to exploreDirectory