Got encoder working and modified the tree pretty significantly