remove load debug statements
add display tree button
correctly serializes tree