We need to access the instance variables here
Fixed variable name
Replaced undefined method with File#read call
Rewrote Hash#to_sym_hash, which is not able to modify the current hash
Added path-to-index parser methods
Added debug output for tree generation