get back deleted upgrade feature. Refactor decoder to take multiple trees in the same file
Merge pull request #62 from Tadimsky/refactorUpgrade

Get back and refactor upgrade feature