Creating subtrees fix
Type fixes
Instalation and tests