Function definitions added and AST->string

Added functions to be able to convert any AST to string to debug and visualize the AST.