Refactored tree growth
Cleaned out unused code for JSON communication