Massive rewrite - bookChildTree is the only tested function
Updated for new functions