Completed the ast work. Output of all the files matches completely with the reference implementation