Switching from "roles" to "treenodes"
Added keypool algorithms (now childPool)