Refactored everything. New item api. Main object renamed to tree