added initial check for addchild
add child works recursively

there’s probably still some possible optimization, but it works :)
make the recursive add child test work properly

previously it was throwing typeerrors, this failed on recursiveness.