Altered the tree creation procedure to handle variable length adc arrays, thus saving on tree space.