Debugging analyzer.

Added tree printer and some other debug messages.