Prepping to add back hashtable

Improved indented tree printing.
Made everything const correct.
Minor changes and notes here and there.