Added a small debugging function that prints out the parsed quantities in a compact, tree-like fashion.