Improved AST pretty-printing

This has no purpose other than the fact that I may want to use it in the
future if/when I do some AST transformations.
Removed some dead code