Fixed propagation of maxDepth and maxChildren.
Merge pull request #3 from statico/maxdepth-maxchildren

Fixed propagation of maxDepth and maxChildren.