Add base tree structure and definition loader