minor bug fixes and improvements to TreeTraceAnalysis