Add possibility to use different tree names. Fix bug with input arrays.