wyatt's tree integrated & initial code audit

Code audit required due to tree version being implemented in ~2-3 version old code...
Tree works though :) lets get buttons integrated!
Merge pull request #14 from hyperstrike/patch-9

wyatt's tree integrated & initial code audit